home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 1996 September & October / Amiga-CD 1996 #9-10.iso / demos / storm-c / stormc / include / time.h < prev    next >
C/C++ Source or Header  |  1996-06-13  |  785b  |  44 lines

  1. #ifndef _INCLUDE_TIME_H
  2. #define _INCLUDE_TIME_H
  3.  
  4. /*
  5. **  $VER: time.h 1.0 (18.1.96)
  6. **  StormC Release 1.1
  7. **
  8. **  '(C) Copyright 1995/96 Haage & Partner Computer GmbH'
  9. **     All Rights Reserved
  10. */
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16. typedef unsigned int time_t;
  17. typedef unsigned int clock_t;
  18.  
  19. struct tm { 
  20.     int tm_sec, tm_min, tm_hour;
  21.     int tm_mday, tm_mon, tm_year;
  22.     int tm_wday, tm_yday;
  23.     int tm_idst;
  24. };
  25.  
  26. time_t time(time_t *);
  27. struct tm *gmtime(const time_t *);
  28. struct tm *localtime(const time_t *);
  29. time_t mktime(struct tm *);
  30.  
  31. #define CLOCKS_PER_SEC 50
  32. clock_t clock(void);
  33. double difftime(time_t, time_t);
  34.  
  35. int strftime(char *, unsigned int, const char *, const struct tm *);
  36. char *asctime(const struct tm *);
  37. char *ctime(const time_t *);
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42.  
  43. #endif
  44.